#include "DataStructure/Result/ElementalForce/QUAD8ForceData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const QUAD8ForceData& val1, const QUAD8ForceData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE_ARR (m_TERM, 4)
    FIELD_COMPARE_ARR (m_GRID, 5)
    FIELD_COMPARE_ARR (m_MX, 5)
    FIELD_COMPARE_ARR (m_MY, 5)
    FIELD_COMPARE_ARR (m_MXY, 5)
    FIELD_COMPARE_ARR (m_BMX, 5)
    FIELD_COMPARE_ARR (m_BMY, 5)
    FIELD_COMPARE_ARR (m_BMXY, 5)
    FIELD_COMPARE_ARR (m_TX, 5)
    FIELD_COMPARE_ARR (m_TY, 5)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const QUAD8ForceData& a, const QUAD8ForceData& b)
{
    return a.m_eId < b.m_eId;
}
